package com.qf.test;

import com.qf.controller.UserController;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/*
 *@Description:
 *@author:刘哥
 *@Date:14:53 2022/7/9
 */
public class Demo {
    @Test
    public void test(){
        ApplicationContext act=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserController userController = (UserController) act.getBean(UserController.class);
        System.out.println(  userController.selectById(5));
    }
}
